import { Router,Route,hashHistory } from 'react-router'
import App from '../js/App'
import Desktop from '../js/Desktop'
import UserManager from '../modules/admin/UserManager'
import AddUser from '../modules/admin/AddUser'
import UpdateUser from '../modules/admin/UpdateUser'
ReactDOM.render((
    <Router history={hashHistory}>
        <Route path="/" component={App}>
            <Route path="/desktop" component={Desktop}/>
            <Route path="/userManager" component={UserManager}/>
            <Route path="/userManager/add" component={AddUser}/>
            <Route path="/userManager/update/:id" component={UpdateUser}/>
        </Route>

    </Router>
), document.getElementById('app'))